package com.hzlj.position.dbsync.liaoning.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fz.common.base.converter.QueryWrapperConverterPlus;
import com.fz.common.base.dto.PageParamDTO;
import com.fz.common.base.dto.QueryPageResultDTO;
import com.hzlj.position.dbsync.liaoning.common.dto.messageSync.MessageSyncQueryParamDTO;
import com.hzlj.position.dbsync.liaoning.common.dto.messageSync.MessageSyncQueryResultDTO;
import com.hzlj.position.dbsync.liaoning.common.model.MessageSync;
import com.hzlj.position.dbsync.liaoning.mapper.MessageSyncMapper;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * 消息已读记录-用来做消息同步使用(MessageSync)表操作类
 *
 * @author lifh
 * @date 2023-11-30 09:13:06
 */
@Repository
public class MessageSyncDao extends ServiceImpl<MessageSyncMapper, MessageSync> {
    @Resource
    private MessageSyncMapper messageSyncMapper;



    /**
     * 查询列表：分页
     */
    public QueryPageResultDTO<MessageSyncQueryResultDTO> pageMessageSync(MessageSyncQueryParamDTO dto, PageParamDTO page) {
        return QueryWrapperConverterPlus.of(messageSyncMapper)
                .page(MessageSyncQueryResultDTO.class, dto, page);
    }
}

